package origin.database;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class DBCommonFunc {
	public static void closeConnection(Connection con,Statement stat,ResultSet rs){
		if(con!=null)
			try {
				con.close();
			} catch (SQLException e) {}
		if(stat!=null)
			try {
				stat.close();
			} catch (SQLException e) {}
		if(rs!=null)
			try {
				rs.close();
			} catch (SQLException e) {}
	}
}
